package com.base.service.impl;


import com.base.mapper.voipmapper.ShareRedPacketLogMapper;
import com.base.po.voip.ShareRedPacketLog;
import com.base.po.voip.ShareRedPacketLogExample;
import com.base.service.ShareRedPacketLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("shareRedPacketLogService")
public class ShareRedPacketLogServiceImpl implements ShareRedPacketLogService {
	
	@Autowired
	private ShareRedPacketLogMapper shareRedPacketLogMapper;

	@Override
	public int countByExample(ShareRedPacketLogExample example) {
		return shareRedPacketLogMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(ShareRedPacketLogExample example) {
		return shareRedPacketLogMapper.deleteByExample(example);
	}

	@Override
	public int insert(ShareRedPacketLog record) {
		return shareRedPacketLogMapper.insert(record);
	}

	@Override
	public int insertSelective(ShareRedPacketLog record) {
		return shareRedPacketLogMapper.insertSelective(record);
	}

	@Override
	public List<ShareRedPacketLog> selectByExample(ShareRedPacketLogExample example) {
		return shareRedPacketLogMapper.selectByExample(example);
	}

    @Override
    public List<ShareRedPacketLog> selectByUserid(String userid) {
        return shareRedPacketLogMapper.selectByUserid(userid);
    }

    @Override
	public int updateByExampleSelective(ShareRedPacketLog record, ShareRedPacketLogExample example) {
		return shareRedPacketLogMapper.updateByExampleSelective(record,example);
	}

	@Override
	public int updateByExample(ShareRedPacketLog record, ShareRedPacketLogExample example) {
		return shareRedPacketLogMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(ShareRedPacketLog record) {
		return shareRedPacketLogMapper.updateByPrimaryKeySelective(record);
	}
}
